
<div class="w100p filter">
      <div class="float_left p10l">
      <form id="permission-filter-form" action="" method="post">
        <div class="float_left">
          <label class="lbl1">Permission type:</label>
          <select onchange="document.getElementById('permission-filter-form').submit();" class="txt" name="filter[PermissionType]" style="height:20px;margin-bottom: -2px;width: 175px;">
              <option value="*">-- <?php echo $this->translate->_("All");?> --</option>
          <?php foreach($this->PermissionTypeList as $b){?>
               <option value="<?php echo $b['PermissionType'];?>" <?php if($b['PermissionType'] == $this->filter['PermissionType']){?> selected<?php } ?>><?php echo $b['PermissionType'];?></option>
          <?php }?>
          </select>
        </div>
        </form>
        <div class="cl"></div>
      </div>
      <div class="float_right">
        <div class="float_left button_leftb m10r">
          <div class="button_rightb"><a href="<?php echo $this->url(array("action" => "refresh")); ?>">
                    <?php echo $this->translate->_("Refresh permissions");?>
                </a></div>
        </div>
        <div class="float_left button_leftb m10r">
          <div class="button_rightb"><a href="<?php echo $this->url(array("action" => "grant")); ?>">
                    <?php echo $this->translate->_("Grant Group Permissions");?>
                </a></div>
        </div>
        <div class="cl"></div>
      </div>
      <div class="cb"></div>
    </div>
    <div id="main">
      <div class="w950 mc bg_table po p15b">
        <div class="top_left"></div>
        <div class="top_right"></div>
        <div class="bottom_left"></div>
        <div class="bottom_right"></div>
        <h3 class="p15t p15l p15b bg_bot"><b><?php echo $this->translate->_("View Permissions");?></b></h3>
        <table cellpadding="0" cellspacing="0">
		<tr>
			<th width="10%" bgcolor="#bebebe"><?php echo $this->translate->_("Permission ID");?></th>
                        <th width="25%" bgcolor="#bebebe"><?php echo $this->translate->_("Name");?></th>
                        <th width="15%" bgcolor="#bebebe"><?php echo $this->translate->_("Type");?></th>
                        <th width="25%" bgcolor="#bebebe"><?php echo $this->translate->_("Description");?></th>
			<th width="25%" bgcolor="#bebebe"><?php echo $this->translate->_("Permission Key");?></th>
		</tr>
<?php $isColor = 'bg2';
if (count($this->paginator) && !empty($this->paginator)):
foreach($this->paginator as $v)
{
            if ($isColor== 'bg1') {
                    $isColor = 'bg2';
            } else {
                    $isColor = 'bg1';
            }
?>
          <tr class="<?php echo $isColor;?>">
			<td><?php echo $v['PermissionID'];?></td>
                        <td><?php echo $v['Name'];?>
						<?php
echo  "<div class=\"row-actions short_action\"><span><a href='".$this->url(array('action' => 'delete', 'pid' => $v['PermissionID']))."'>Trash </a></span></div>";
			?>
<!--                            <span class='edit'><a href='".$this->url(array('action' => 'edit', 'pid' => $v['PermissionID']))."'>Edit</a> | </span>-->
						</td>
                        <td><?php echo $v['PermissionType'];?></td>
                        <td><?php echo $v['Description'];?></td>
			<td><?php echo $v['PermissionKey'];?></td>
		</tr>
	<?php } ?>
	<?php endif; ?>
 </table>
      </div>
<?php echo $this->paginationControl($this->paginator,'Sliding', 'admin_pagination_control.phtml'); ?>

